<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
 <%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'trackers.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
  	<jsp:include page="header.jsp"></jsp:include>

<br/><br/>
	<s:if test="'fans'==type">
	<a href="buddy_follows?master.id=<s:property value="master.id"/>"><b><s:property value="master.name"/></b>关注的人</a>|关注<b><s:property value="master.name"/></b>的人<br/>
     </s:if>
     <s:else>
     	<b><s:property value="master.name"/></b>关注的人|<a href="buddy_fans?master.id=<s:property value="master.id"/>">关注<b><s:property value="master.name"/></b>的人</a><br/>
     </s:else>
     
        <s:iterator value="buddies">
  		 
  		<div style="display:block;background: #999">
  		
	    	<p> 
	    		<a href="<s:property value="id"/>">
	    			<img alt="" src="<s:property value="photo"/>"><s:property value="name"/>
	    		</a>
	    			<s:if test="both">
	    				已收听，<s:a href="buddy_remove?target.id=%{id}">取消</s:a>
	    			</s:if>
	    			<s:else>
	    				<s:a href="buddy_add?target.id=%{id}">立即收听</s:a>？
	    			</s:else>
	    	</p>
  		 </div>
   		 </s:iterator>
    	
    	
    	    
  

 
  
   
   
  </body>
</html>
